package com.feng.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.feng.entity.Category;
import com.feng.entity.RestResponse;
import com.feng.entity.vo.CategoryAddVo;
import com.feng.entity.vo.CategoryPageReqVo;
import com.feng.entity.vo.UpdateRoleStatusReqVo;
import jakarta.servlet.http.HttpServletResponse;

import java.util.List;

/**
 * (Category)表服务接口
 *
 * @author feng
 * @since 2024-10-18 13:54:53
 */
public interface CategoryService extends IService<Category> {

    RestResponse listAllCategory();

    RestResponse listAllCategoryPage(CategoryPageReqVo categoryPage);

    RestResponse updateStatus(UpdateRoleStatusReqVo updateStatus);

    RestResponse addCategory(CategoryAddVo categoryAdd);

    RestResponse getCategoryById(Integer id);

    RestResponse updateCategory(CategoryAddVo categoryAdd);

    RestResponse deleteCategory(Long id);

    RestResponse delBatchCategory(List<Long> ids);

    void export(HttpServletResponse response);
}

